"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Animal = /** @class */ (function () {
    function Animal(name, type) {
        this.name = name;
        this.type = type;
    }
    Animal.prototype.play = function () {
        console.log('爬楼梯');
    };
    return Animal;
}());
var Cat = /** @class */ (function (_super) {
    __extends(Cat, _super);
    function Cat(name, type) {
        return _super.call(this, name, type) || this;
    }
    Cat.prototype.show = function () {
        console.log(this.name);
    };
    return Cat;
}(Animal));
var cat = new Cat('xiaohua', '短猫');
cat.play();
var Student = /** @class */ (function () {
    function Student(name, age, weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }
    Student.prototype.showMessage = function () {
        console.log(this.age);
        console.log(this.weight);
    };
    return Student;
}());
var stu = new Student('黎月', 24, 40);
// console.log(stu.age);
// console.log(stu.weight);
// stu.age = -1
// console.log(stu.age);
stu.showMessage();
console.log(stu.name);
